package com.lzh.chatnote.chat.controller;


import com.lzh.chatnote.chat.domain.vo.request.group.GroupQueryCursorPageReq;
import com.lzh.chatnote.chat.domain.vo.response.group.GroupQueryResp;
import com.lzh.chatnote.chat.service.GroupMemberService;
import com.lzh.chatnote.common.domain.response.ApiResult;
import com.lzh.chatnote.common.domian.vo.response.CursorPageBaseResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * <p>
 * 群成员表 前端控制器
 * </p>
 *
 * @author lzh
 * @since 2025-09-25
 */
@Api(tags = "群成员控制器")
@RestController
@RequestMapping("/groupMember")
public class GroupMemberController {

    @Resource
    private GroupMemberService groupMemberService;

    /**
     * 游标分页查询群成员列表
     */
    @ApiOperation("游标分页查询群成员列表")
    @GetMapping("/queryCursorPage")
    public ApiResult<CursorPageBaseResp<GroupQueryResp>> queryCursorPage(@Valid GroupQueryCursorPageReq groupQueryCursorPageReq){
        return ApiResult.success(groupMemberService.queryCursorPage(groupQueryCursorPageReq));
    }


}

